﻿function S_success() {
    $.messager.show({
        title: '成功',
        msg: '操作成功',
        timeout: 1500,
        showType: 'slide',
        style: {
            right: '',
            top: 100,
            bottom: ''
        }
    });
    Reload();
}
function E_error() {
    $.messager.show({
        title: '失败',
        msg: '操作失败',
        timeout: 1500,
        showType: 'slide',
        style: {
            right: '',
            top: 100,
            bottom: ''
        }
    });
    Reload();
}

function E_errorMsg(errorMsg) {
    $.messager.show({
        title: '提示',
        msg: errorMsg,
        //timeout: 1500,
        showType: 'slide',
        style: {
            right: '',
            top: 100,
            bottom: ''
        }
    });
    Reload();
}

function Reload() {
    $("#dg").datagrid("load");
}

function ReloadCurrentPage() {
    location.reload();
}